package com.cxl.price.service;

import org.htmlparser.util.ParserException;

import com.summer.core.service.BaseService;
import com.cxl.price.bean.Good;
import com.cxl.price.bean.Goods;
import com.cxl.price.bean.Shop;

/**
 * @about: 商城商品 service 接口
 * @author: wwwlike
 * @create: 2011-06-14
 */
public interface GoodService  extends BaseService<Good, String> {

	/**
	 *  设置最低价格为主价格 并返回这个最低价格
	 * @param goods
	 * @return
	 */
	public Double getMinPrice(Goods goods);
	
	/**
	 * 跟新good价格
	 * @param shop
	 * @param good
	 * @throws InstantiationException
	 * @throws IllegalAccessException
	 * @throws ClassNotFoundException
	 * @throws ParserException
	 */
	public void updatePrice(Good good) throws InstantiationException, IllegalAccessException, ClassNotFoundException, ParserException;
}
